<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<body>
	<ui:composition>
		<h1>MoneyMonitor</h1>
		<h:form rendered="#{not empty accountingSessionBean.user}">
			<p class="greeting">
				<h:outputText
					value="#{msgs.welcome}, #{accountingSessionBean.user.username}! " />
				<h:commandLink action="#{accountingSessionBean.logOut()}"
					value="#{msgs.logout}" />
			</p>
			<ul class="menu">
				<li><h:link outcome="home" value="#{msgs.home}" /></li>
				<li><h:link outcome="listCategories" value="#{msgs.mycategories}" /></li>
				<li><h:link outcome="listTransactions" value="#{msgs.mytransactions}" /></li>
				<li><h:link outcome="listPublicUsers" value="#{msgs.publisusers}" /></li>
				<li><h:link outcome="updateUser" value="#{msgs.updateUser}" /></li>
				<li><h:link outcome="/pages/protected/admin/admin_index.xhtml?faces-redirect=true" rendered="#{accountingSessionBean.userAdmin}" value="#{msgs.adminpage}" /></li>
			</ul>
		</h:form>
	</ui:composition>
</body>
</html>